const calculateDiffTime = (startTime:any, endTime:any) => {
    let runTime = Number((endTime - startTime) / 1000);
    let year = Math.floor(runTime / 86400 / 365);
    runTime = runTime % (86400 * 365);
    let month = Math.floor(runTime / 86400 / 30);
    runTime = runTime % (86400 * 30);
    let day = Math.floor(runTime / 86400);
    runTime = runTime % 86400;
    let hour = Math.floor(runTime / 3600);
    runTime = runTime % 3600;
    let minute = Math.floor(runTime / 60);
    runTime = runTime % 60;
    let second = runTime;
    let result = {
      year,
      month,
      day,
      hour,
      minute,
      second
    };
    // console.log(`相差${year}年${month}月${day}天${hour}小时${minute}分${second}秒`);
    return result;
  };
  export {calculateDiffTime}